package com.tcm.prescribe.mapper;

import com.tcm.prescribe.api.domain.entity.PrescribePhoto;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface PrescribePhotoMapper {
    int deleteById(Long id);

    int deleteLogicById(Long id);

    int insert(PrescribePhoto record);

    PrescribePhoto findById(Long id);

    int update(PrescribePhoto record);

    List<PrescribePhoto> listPhotoPageByUser(@Param("userId")Long userId,
                                             @Param("offset")Long offset,
                                             @Param("pagesize")Long pagesize);

    Long countPhotoByUser(@Param("userId")Long userId);

    List<PrescribePhoto> listPhotoPageByDoctor(@Param("userId")Long userId,
                                               @Param("offset")Long offset,
                                               @Param("pagesize")Long pagesize);

    Long countPhotoByDoctor(@Param("doctorId")Long doctorId);

    List<PrescribePhoto> listPhotoPage(@Param("offset")Long offset,
                                       @Param("pagesize")Long pagesize);

    Long countPhoto();

}